<?php
class NavBarWidget extends CWidget
{
    public function init()
    {
        parent::init();
    }

    public function run()
    {
        $langs = Yii::app()->params['languages'];
        $currentLang = $langs[Yii::app()->language];
        $this->render("NavBar", compact('langs', 'currentLang'));
    }
}
?>
